###

The VBox widget aligns widgets in a vertical order.

###

class tree.ui.VBox extends tree.ui.Container
    
    constructor: () ->
        super
        @connect 'added', this.added
        @htmlelem = document.createElement 'table'
        @htmlelem.className = 'tree-vbox-layout'
    
    added: (evt) =>
        
    
    show: () ->
        super @
        for child in @children
            tr = document.createElement 'tr'
            td = document.createElement 'td'
            tr.appendChild td
            td.appendChild child.show()
            @htmlelem.appendChild tr
        @htmlelem
